<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>二维码打印</title>
    <script type="text/javascript" th:src="@{../static/js/jquery-2.0.0.js}"></script>
</head>
<body>
<iframe id="iframePrintEWM" frameborder="1" width="500" height="500"></iframe>
<div> 1.二维码预览</br>
    2.二维码打印
</div>
</br>
</br></br>
<hr>
<input type="button" th:value="二维码预览" onclick="showQrList()">
<script type="text/javascript">
    var height = $("body").height();
    var width = $("body").width();
    function showQrList(){
        var url = "/qrPrint/printQrFrame";
        $("#iframePrintEWM").attr("src",url);
    }
</script>
</body>
</html>